<layout name="page" />
<block name="content">
	{:widget('page_header/simple',array('name'=>'系统参数','search'=>'N'))}
	<div class="tab-box" style="height:320px;" >
		<div class="tab-header">
			<a href="{:url('index')}">基本设置</a>
			<a href="{:url('weixin')}">微信设置</a>
			<a href="{:url('weixin_menu')}">微信菜单</a>
			<a href="{:url('config')}">系统参数</a>
			<a class="active">推送设置</a>
		</div>
		<div class="tab-content" style="margin-top:10px;">
			<form id="form_data" name="form_data" method="post" class="frame" >
				<input type="hidden" name="data_type" value="system_push">
				<div class="box">
					<label class="input-label text-right" for="ws_push_config">网页推送设置：</label>
					<input class="input" type="text" id="ws_push_config" name="ws_push_config" value="{$push_data.ws_push_config}">
				</div>
				<div class="box">
					<label class="input-label text-right" for="weixin_push_config">微信推送设置：</label>
					<input class="input" type="text" id="weixin_push_config" name="weixin_push_config" value="{$push_data.weixin_push_config}" >
				</div>
				<div class="box">
					<label class="input-label text-right" for="msg_push_config">微信分类推送：</label>
					<input class="input" type="text" id="msg_push_config" name="msg_push_config" value="{$push_data.msg_push_config}">
				</div>
				<div class="box">
					<label class="input-label text-right" for="ws_push_config">消息弹窗时间：</label>
					<input class="input w6" type="text" id="ws_push_time" name="ws_push_time" value="{$push_data.ws_push_time}">
				</div>
				<div class="box">
					<label class="input-label"></label>
					<a class="btn btn-normal" onclick="save();">保存</a>
				</div>
			</form>
		</div>
	</div>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use('global', function() {
			var $ = layui.jquery;
			var fn = {
				save : function() {
					send_form("form_data", "{:url('save')}", "{:url('push')}", function(ret) {
						if (ret.status) {
							layer.msg(ret.info, {
								time : 1200
							}, function() {
								location.reload(true);
							});
						} else {
							layer.msg(ret.info);
							return false;
						}
					});
				}
			};
			win_exp(fn);
		});
	</script>
</block>